package com.ruoyi.project.good.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品拼团配置对象 goods_assemble
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class GoodsAssemble extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long assembleId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 活动开始时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间")
    private String startTime;

    /** 活动结束时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间")
    private String endTime;

    /** 拼团有效期（单位小时） */
    @Excel(name = "拼团有效期", readConverterExp = "单=位小时")
    private Integer termOfValidity;

    /** 成团人数 */
    @Excel(name = "成团人数")
    private Integer peopleNum;

    /** 单账号最多开团数 */
    @Excel(name = "单账号最多开团数")
    private Integer openRegiment;

    /** 单账号最多参团数 */
    @Excel(name = "单账号最多参团数")
    private Integer joinRegiment;

    /** 单账号最多可购买数 */
    @Excel(name = "单账号最多可购买数")
    private Integer maxPurchase;

    /** 0:草稿箱 1:正式发布 */
    @Excel(name = "0:草稿箱 1:正式发布")
    private Integer assembleType;

    /** 1删除 */
    @Excel(name = "1删除")
    private Integer isDel;

    /** 拼团状态。1:进行中;2.结束 */
    @Excel(name = "拼团状态。1:进行中;2.结束")
    private Integer state;

    public void setAssembleId(Long assembleId) 
    {
        this.assembleId = assembleId;
    }

    public Long getAssembleId() 
    {
        return assembleId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setTermOfValidity(Integer termOfValidity) 
    {
        this.termOfValidity = termOfValidity;
    }

    public Integer getTermOfValidity() 
    {
        return termOfValidity;
    }
    public void setPeopleNum(Integer peopleNum) 
    {
        this.peopleNum = peopleNum;
    }

    public Integer getPeopleNum() 
    {
        return peopleNum;
    }
    public void setOpenRegiment(Integer openRegiment) 
    {
        this.openRegiment = openRegiment;
    }

    public Integer getOpenRegiment() 
    {
        return openRegiment;
    }
    public void setJoinRegiment(Integer joinRegiment) 
    {
        this.joinRegiment = joinRegiment;
    }

    public Integer getJoinRegiment() 
    {
        return joinRegiment;
    }
    public void setMaxPurchase(Integer maxPurchase) 
    {
        this.maxPurchase = maxPurchase;
    }

    public Integer getMaxPurchase() 
    {
        return maxPurchase;
    }
    public void setAssembleType(Integer assembleType) 
    {
        this.assembleType = assembleType;
    }

    public Integer getAssembleType() 
    {
        return assembleType;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assembleId", getAssembleId())
            .append("goodsId", getGoodsId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("termOfValidity", getTermOfValidity())
            .append("peopleNum", getPeopleNum())
            .append("openRegiment", getOpenRegiment())
            .append("joinRegiment", getJoinRegiment())
            .append("maxPurchase", getMaxPurchase())
            .append("assembleType", getAssembleType())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .append("state", getState())
            .toString();
    }
}
